import { NgModule } from '@angular/core';
import { Routes, RouterModule } from '@angular/router';
import {LunhuiWebFrontHomeComponent} from './lunhui-web-front-home/lunhui-web-front-home.component';
import {LunhuiWebFrontMapComponent} from './lunhui-web-front-map/lunhui-web-front-map.component';
import {LunhuiWebFrontMessageComponent} from './lunhui-web-front-message/lunhui-web-front-message.component';
import {LunhuiWebFrontLoginComponent} from './lunhui-web-front-login/lunhui-web-front-login.component';
import {LunhuiWebFrontRoseselectviewComponent} from './lunhui-web-front-roseselectview/lunhui-web-front-roseselectview.component';


const routes: Routes = [
  {path: '', redirectTo: 'home', pathMatch: 'full'},
  {path: 'home', component: LunhuiWebFrontHomeComponent},
  {path: 'map', component: LunhuiWebFrontMapComponent},
  {path: 'message', component: LunhuiWebFrontMessageComponent},
  {path: 'login', component: LunhuiWebFrontLoginComponent},
  {path: 'roseSelectView', component: LunhuiWebFrontRoseselectviewComponent},
];

@NgModule({
  imports: [RouterModule.forRoot(routes)],
  exports: [RouterModule]
})
export class AppRoutingModule { }
